package com.va.yahooweather.commons;

import java.io.IOException;
import org.dom4j.DocumentException;

public class LocationUtil {

    private static LocationUtil INSTANCE = null;
    
    public String searchLocation(String keyword) throws IOException, DocumentException {
        WoeidUtil woeid = WoeidUtil.getInstance();
        return woeid.searchLocation(keyword);
//        return getWoeid(keyword);
    }

    public static LocationUtil getInstance()
    {
        if (INSTANCE == null)
        {
            synchronized (LocationUtil.class) {
                if (INSTANCE == null)
                {
                    INSTANCE = new LocationUtil();
                }
            }
        }
        
        return INSTANCE;
    }
    
}
